import * as React from 'react'
import {DefaultTheme, Provider as PaperProvider} from 'react-native-paper';
import {Provider as StoreProvider} from 'react-redux'
import Root from './app/root';
import store from "./app/redux/store"

const theme = {
    ...DefaultTheme,
    colors: {
        ...DefaultTheme.colors,
        primary: 'tomato',
        accent: 'yellow',
    },
};
export default function Main() {
    return (
        <StoreProvider store={store}>
            <PaperProvider theme={theme}>
                <Root/>
            </PaperProvider>
        </StoreProvider>

    );
}